<#include "../common/layout.ftl"/>
<@layout>
<div class="well">

	<form method="post" action="/driver/enroll" class="form-inline">
		<span class="label label-success">在线报名</span>
		姓名：<input type="text" class="input-medium" style="height: 26" placeholder="姓名" name="real_name" value="${name?if_exists}"/>
		身份证号：<input type="text" class="input-medium" style="height: 26" placeholder="身份证号" name="id_card" value="${id_card?if_exists}"/>
		手机号：<input type="text" class="input-medium" style="height: 26" placeholder="手机号" name="cell_phone" value="${phone?if_exists}"/>
		状态：
              <select id="status" name="status"  >
                <option value="" >所有</option>
                <option value="0" <#if status?if_exists?string=='0'>selected</#if>>待审核</option>
                <option value="1" <#if status?if_exists?string=='1'>selected</#if>>审核通过</option>
                <option value="2" <#if status?if_exists?string=='2'>selected</#if>>审核不通过</option>
              </select><br/>
		<button type="submit" class="btn btn-primary"><i class="icon-search icon-white"></i>查询</button>
		<button type="button" class="btn btn-info" onclick="javascript:history.back();">返回</button>
	</form>
  </div>

<div class="well">

	<table class="table table-bordered table-striped" >
		<thead>
		  <tr>
			<th>ID</th>
			<th>姓名</th>
			<th>手机号</th>
			<th>所属城市</th>
			<th>籍贯</th>
			<th>身份证号</th>
			<th>驾照号</th>
			<th>驾照类型</th>
			<th>审核类型</th>
			<th>驾龄</th>
			<th>年龄</th>
			<th>性别</th>
			<th>介绍人</th>
			<th>审核状态</th>
			<th>审核时间</th>
			<th>审核人</th>
			<th>备注</th>
			<th>操作</th>
		  </tr>
		</thead>
		<tbody>
		<#list page.list as driver>
		  <tr>
			<td>
			 	${driver.id }
			</td>
			<td>
			  ${driver.name!"" }
			</td>
			<td>
			 ${driver.phone!""}
			</td>
			<td>
			  ${driver.city!""}
			</td>
			<td>
			  ${driver.hometown!""}
			</td>
			<td>
			 	${driver.id_card!""}
			</td>		
			<td>
			 	${driver.license_num!""}
			</td>			
			<td>
			 	${driver.driver_license!""}
			</td>			
			<td>
				${driver.flagName!"" }
			</td>
			<td>
				${driver.driver_age!"0" }
			</td>
			<td>
				${driver.age!"0" }
			</td>
			<td>
			  <#if driver.sex == 0>
			  	<span class="label label-info">男</span>
			  <#elseif driver.sex == 1>
			  	<span class="label label-warning">女</span>
			  <#else>
			  	<span class="label label-inverse">未知</span>
			  </#if>
			</td>
			<td>
			  ${driver.introduce_person!""}
			</td>
			<td>
				 <#if driver.status == 0>
			  		<span class="label label-info">未审核</span>
			  	<#elseif driver.status == 1>
			  		<span class="label label-warning">审核通过</span>
			  	<#else>
			  		<span class="label label-inverse">审核不通过</span>
			 	 </#if>
			</td>
			
			<!--td>
			    ${driver.bank_no!""}
			</td-->
			
			<td>
				${driver.status_time!"" }
			</td>
			<td>
				${driver.status_id!"" }
			</td>
			<td>
			 	 ${driver.remark!"" }
			</td>
			
			<td nowrap>
					<#if session.userRole == 'admin' || session.userRole == 'brandManager' || session.userRole == 'middleManager' >
			         	<a class="btn btn-primary" href="/driver/enrollDetail/${driver.id}" ><i class="icon-eye-open icon-white"></i>操作</a>
			         </#if>
			</td>
		  </tr>
		</#list>
		</tbody>
	</table>
	<#include "../common/paginate.ftl" />
	<@paginate currentPage=page.pageNumber totalPage=page.totalPage actionUrl="/enroll/" urlParas="?cell_name=${cell_name!''}&id_card=${id_card!''}&phone=${phone!''}&status=${status!''}"/>
</div>

<script type="text/javascript">

</script>
</@layout>